let user = require('../../db/hospitaldb')



module.exports=async(req,resp)=>{
  
    // await
    // console.log(req.body);
    
  
    await user.deleteOne({id:req.body.id}).then((data)=>{
        if(!data){
            console.log(req.body.id);
            resp.status(500).send('删除失败')
        }else{
            console.log(req.body.id);
            resp.redirect('/index/discussion')
        }
    })
   
}